package pl.edu.agh.mbc.database.dao;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import org.springframework.dao.support.DataAccessUtils;

import pl.agh.edu.exceptions.DaoException;
import pl.edu.agh.dao.interfaces.IContentDao;
import pl.edu.agh.mbc.database.dao.commons.BaseDao;
import pl.edu.agh.mbc.persistance.BuyedTicket;
import pl.edu.agh.mbc.persistance.Category;
import pl.edu.agh.mbc.persistance.Event;
import pl.edu.agh.mbc.persistance.User;

public class ContentDaoImpl extends BaseDao<Serializable> implements IContentDao {

	public BuyedTicket doBuyTicket(int quantity, Event ticket)
			throws DaoException {
		// TODO Auto-generated method stub
		return null;
	}

	@SuppressWarnings("unchecked")
	public List<Category> getCategorys() throws DaoException {
		return hibernateTemplate.find("from pl.edu.agh.mbc.persistance.Category where isActive=1");
	}
	

	public List<Event> serchEvents() throws DaoException {
		return new ArrayList<Event>();
	}

}
